﻿ <%
					
					sSQLbo = "select top 5 name,url,position,filename,type from advertising where isdeleted =0 and status =1 and position ='bottomright'"
					Set rsbo = DBLayer.GetRecordSet(sSQLbo)
					
					While Not rsbo.EOF
						if rsbo("type").Value = "flash" Then 
						%>
							<div  style="height: 300px; width: 300px;">
								<a href="<%=rsbo("url").Value%>" target="_blank">
									<object height="300" align="middle" width="300" id="MetaNET_ADV_NUMBER_2_FLASH" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
										classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
										<param value="always" name="allowScriptAccess">
										<param value="uploads/advs/<%=rsbo("filename").Value%>" name="movie">
										<param value="opaque" name="wmode">
										<param value="" name="linkUrl">
										<param value="high" name="quality">
										<embed height="300" align="middle" width="300" pluginspage="http://www.macromedia.com/go/getflashplayer"
											linkurl="" wmode="opaque" type="application/x-shockwave-flash" allowscriptaccess="always"
											name="MetaNET_ADV_NUMBER_2_FLASH" id="Embed1" quality="high" src="uploads/advs/<%=rsbo("filename").Value%>">
									</object>
								</a>
									<img height="1" border="0" width="1" src="js-css/a.gif" style="position: absolute;
										top: 0px; left: 0px; z-index: 1;">
							</div>
						<%
						elseif rsbo("type").Value = "image" Then
						%>
							<div>
								<a  target="_blank"  href="<%=rsbo("url").Value%>">
									<img height="300" border="0" width="300" src="uploads/advs/<%=rsbo("filename").Value%>"></a>
								<img height="1" border="0" width="1" src="js-css/a_003.gif" style="position: absolute;
										top: 0px; left: 0px; z-index: 1;">
							</div>
						<%
						end if
						rsbo.MoveNext
					Wend
					%>